Posted by Yiyong from iris2.engr.utk.edu (128.169.133.105) on May 22, 1999 at 15:22:37:
I want to calculate world coordinate of a pixel from its depth value.
Can gluUnproject do this?
Should I pass the value from glReadPixels(GL_DEPTH_COMPONENT) to window depth value "winz" in gluUnproject.
In perspective camera, is this value the range(between pixel and camera) or the z value.
Why the coordinates returned from gluUnproject are always between -1 and 1.
How can I get the real coordinate value.
Thank you.